import com.Lyy.Mapper.CardMapper;
import com.Lyy.Mapper.StudentMapper;
import com.Lyy.cla.MBCard;
import com.Lyy.cla.MBStudent;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import javax.smartcardio.Card;
import java.io.IOException;
import java.util.List;

public class card {
    @Test
    public void select() {
        MBCard card = new MBCard(1,2);

        SqlSession sqlSession = com.Lyy.unitl.MBgetSession.getsqlSession();
        List<Card> card1 = sqlSession.getMapper(CardMapper.class).MBSelectCard(card.getId());
        System.out.println(card1);

    }
}
